﻿using QMERP.Domain.Dtos;

namespace QMERP.Application.Services
{
    public interface ICurrencyService
    {
        /// <summary>
        /// 获取币种列表基础数据
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        Task<List<CurrencyResponse>> GetBasicCurrencies();
        /// <summary>
        /// 币种窗体
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<CurrencyResponse>> Query(PageRequest<CurrencyRequest> request);
        /// <summary>
        /// 获取id的币种详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CurrencyResponse> Detail(long id);
        /// <summary>
        /// 币种保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task Save(CurrencySaveRequest request);
    }
}
